package com.ytjj.qmyx.mall.model.response;

import com.ytjj.qmyx.mall.model.Nav;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @Description 活动导航
 * @ClassName NavResponse
 *
 * 
 * @Version 1.0
 **/

@Data
@Accessors(chain = true)
public class NavResponse {
    private Integer id;

    /**
     * 类型
     *
     * @mbg.generated
     */
    private String type;

    /**
     * 图标
     *
     * @mbg.generated
     */
    private String icon;

    /**
     * 图标描述
     *
     * @mbg.generated
     */
    private String iconDesc;

    /**
     * 跳转路径
     *
     * @mbg.generated
     */
    private String path;

    /**
     * 颜色
     *
     * @mbg.generated
     */
    private String color;

    /**
     * 额外字段
     *
     * @mbg.generated
     */
    private String extra;

    /**
     * 展现类型 1->展现 2->销毁
     *
     * @mbg.generated
     */
    private Byte dispalyNav;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 排序
     *
     * @mbg.generated
     */
    private Byte sort;

    public NavResponse() {
    }

    public NavResponse(Nav nav) {
        BeanUtils.copyProperties(nav, this);
    }
}
